<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="utf-8"/>
        <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
        <meta name="viewport" content="width=device-width, initial-scale=1"/>
        <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
        <title><?php echo R('Admin/Other/site',array('id'=>'1'));?> <?php echo ($rtitle); ?> <?php echo ($data["goodsname"]); ?></title>
    <meta name="keywords" content="<?php echo R('Admin/Other/site',array('id'=>'2'));?>"/>
    <meta name="description" content="<?php echo R('Admin/Other/site',array('id'=>'3'));?>"/>

        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
        <!-- Bootstrap -->
        <link href="/Public/style/css/bootstrap.min.css" rel="stylesheet"/>
        <link href="/Public/style/css/common.css" rel="stylesheet" />
        <link href="/Public/style/css/page.css" rel="stylesheet" />
        <script src="/Public/style/js/jquery.min.js">
        </script>
        <!--
            <script src="/Public/style/js/bootstrap.min.js">
            </script>
        -->
        <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
            <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js">
            </script>
            <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js">
            </script>
        <![endif]-->
        <script type="text/javascript">
            $(function(){
            var w = $('.getImgWidth').width();
            $('.thisimg').each(function() {
            $(this).height(w);
            });
            });
        </script>
    </head>
    <body>
         <div class="top bg-orange">
  <div class="container">
      <div class="row">
        <div class="col-md-4 text-center">
         <a href="<?php echo U('Index/index');?>"><img src=" <?php echo R('Admin/Other/site',array('id'=>'5'));?> "></a>
         </div>
        <div class="col-md-8">
          <form class="search" action="<?php echo U('index/search',array('p'=>$p));?>" method="get">
            <div class="col-md-7 col-sm-7">
              <input class="form-control" name="sr" <?php if($sr): ?>value="<?php echo ($sr); ?>"<?php else: ?>placeholder="女装，箱包，手表，iphone，折扣"<?php endif; ?> ></input>
            </div>
            <div class="col-md-2 col-sm-2">
              <select class="form-control" name="type">
                <option value="1" <?php if($ty == 1): ?>selected="selected"<?php endif; ?>>优惠券</option>
                <option value="2" <?php if($ty == 2): ?>selected="selected"<?php endif; ?>>淘商品</option>
              </select>
            </div>
            <div class="col-md-3 col-sm-3">
              <button class="btn btn-orange btn-block">精准搜索</button>
            </div>
          </form>
            <div class="clearfix"></div>
        </div>
        <div class="clearfix"></div>
      </div>
  </div>
</div>
<div class="wireframe bg-gray" >
  <div class="container text-right toppath">
     <?php echo W('Cate/favoritesget');?>
  </div>
</div>

                 
    <div class="main container">
     <div class="re-title text-center">
          <h1 class="text-danger"> <strong><?php echo ($rtitle); ?></strong></h1>
        <h5 class="text-muted"><span class="text-info">"惠"聚千万品牌直营店，</span>款式多样,品种齐全,一站购齐 </h5>
      </div>
         <div class="col-md-10 col-md-offset-1 col-sm-12" >
        <div class="col-md-3 col-xs-6 col-sm-3 menu <?php if(ACTION_NAME== 'index'): ?>active<?php endif; ?>" onclick='location.href="/Home/Index/index";'><span class="glyphicon glyphicon-tags" aria-hidden="true"></span>&nbsp;天天优惠券</div>
        <div class="col-md-3 col-xs-6 col-sm-3 menu <?php if(ACTION_NAME== 'rush'): ?>active<?php endif; ?>" onclick='location.href="/Home/Index/rush";'><span class="glyphicon glyphicon-fire" aria-hidden="true"></span>&nbsp;淘抢购</div>
        <div class="col-md-3 col-xs-6 col-sm-3 menu <?php if(ACTION_NAME== 'group'): ?>active<?php endif; ?>" onclick='location.href="/Home/Index/group";'><span class="glyphicon glyphicon-piggy-bank" aria-hidden="true"></span>&nbsp;特惠优品</div>
        <div class="col-md-3 col-xs-6 col-sm-3 menu <?php if(ACTION_NAME== 'shop'): ?>active<?php endif; ?>" onclick=''><span class="glyphicon glyphicon-gift" aria-hidden="true"></span>&nbsp;良品诚铺</div>
        <div class="clearfix"></div>
      </div>
      <div class="clearfix"></div>
      <br>
      <br>
      <div class="recommend ">
        <div class="row bg-white">
          <div class="shopinfo">
            <?php if(is_array($data)): foreach($data as $key=>$vo): ?><div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 ">
                <div class="thumbnail">
                  <div class="thisimg" onclick='window.open("<?php echo ($vo['item_url']); ?>");'>
                    <div class="imgtitle text-center">
                      <?php echo ($vo['nick']); ?>
                    </div>
                    <img src="<?php echo ($vo["pict_url"]); ?>" alt="<?php echo ($vo["goodsname"]); ?>" class="getImgWidth">
                  </div>
                  <div class="caption">
                  <p class="text-warning" style="font-size: 1.12rem;"> <?php echo (mb_substr($vo["title"],0,28,'utf-8')); ?></p>
                    <div class="row text-muted ">
                      <div class="col-xs-7" >现价： <span class="text-danger" style="font-weight: bold; font-size: 1.142rem;">￥<?php echo ($vo["zk_final_price"]); ?></span></div>
                      <div class="col-xs-5 text-right">原价:<s class="text-muted" ><?php echo ($vo["reserve_price"]); ?></s></div>
                      <div class="clearfix"></div>
                    </div>
                    <div class="price-title">
                        <a class="btn btn-danger btn-block" href="<?php echo ($vo['item_url']); ?>" target="_blank">点击去购买</a>
                    </div>
                  </div>
                </div>
              </div><?php endforeach; endif; ?>
            <div class="clearfix"></div>
            <br>
            <div class="clearfix"></div>
          </div>
        </div> 
      </div>
    </div>
    
              <footer class="container-fluid">
  	<div class="footer row">
  		<div class="footinfo ">
      <div class="col-md-8 col-md-offset-2">
        <div class="col-md-8">版权所有 Copyright ? 2017 猫券网  <br>
                浙ICP备13027130号-9  &nbsp; &nbsp;&nbsp;站长邮箱：dnnw@qq.com <br>
                技术支持： <a href="http://www.isdruid.com" target="_blank">火星猫网络</a> &nbsp; &nbsp;&nbsp;
                <script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1261439457'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s4.cnzz.com/z_stat.php%3Fid%3D1261439457%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script></div>
        <div class="col-md-2 col-xs-6 text-center"> <a href="/Public/images/weixin.png" target="_blank"><img src="/Public/images/weixin.png"></a><br>加微信联系</div>
        <div class="col-md-2 col-xs-6 text-center"> <a href="/Public/images/url.png" target="_blank"><img src="/Public/images/url.png"></a><br>手机访问本站</div>
  			<div class="clearfix"></div>
        </div>
        <div class="clearfix"></div>
  		</div>
  	</div>
  </footer>
            </body>
        </html>